package com.oracle.lingshangejia.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * @松 on 2019/6/11 09:24
 * 签约制定数据类
 */
public class FormulateBean implements Parcelable {

    /**
     * msg : 操作成功
     * code : 0
     * data : [{"id":1,"name":"dsa","content":"das大撒大撒大撒","createBy":1,"createDate":"2019-06-10 15:45:57"}]
     */

    private String msg;
    private int code;
    private List<DataBean> data;

    protected FormulateBean(Parcel in) {
        msg = in.readString();
        code = in.readInt();
    }

    public static final Creator<FormulateBean> CREATOR = new Creator<FormulateBean>() {
        @Override
        public FormulateBean createFromParcel(Parcel in) {
            return new FormulateBean(in);
        }

        @Override
        public FormulateBean[] newArray(int size) {
            return new FormulateBean[size];
        }
    };

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(msg);
        dest.writeInt(code);
    }

    public static class DataBean {
        public boolean isSelect() {
            return select;
        }

        public void setSelect(boolean select) {
            this.select = select;
        }

        /**
         * id : 1
         * name : dsa
         * content : das大撒大撒大撒
         * createBy : 1
         * createDate : 2019-06-10 15:45:57
         */

        private boolean select = false;
        private int id;
        private String name;
        private String content;
        private int createBy;
        private String createDate;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public int getCreateBy() {
            return createBy;
        }

        public void setCreateBy(int createBy) {
            this.createBy = createBy;
        }

        public String getCreateDate() {
            return createDate;
        }

        public void setCreateDate(String createDate) {
            this.createDate = createDate;
        }
    }
}
